#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QVector>
#include "FileInfo.h"
#include "SettingsArea.h"
#include "ImagePrevieWarea.h"
#include "FileInfoarea.h"

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

protected:
    bool eventFilter(QObject *watched, QEvent *event) override;
    void closeEvent(QCloseEvent *event) override;

private:
    void setupUI();
    void connectSignals();

    SettingsArea *m_settingsArea;
    ImagePreviewArea *m_imagePreviewArea;
    FileInfoArea *m_fileInfoArea;

    QVector<FileInfo> m_currentImageList;

private slots:
    void updateImageList(const QVector<FileInfo>& imageList);
    void displayFileInfo(const FileInfo& fileInfo);
};

#endif // MAINWINDOW_H
